﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.ComponentModel;

namespace Kokomo.Mirror.CliMetadata.Tables
{
	public class FieldRow : IMetadataRow
	{
		[ConstantField(typeof(short))]
		public FieldAttributes Flags { get; set; }
		public StringRef Name { get; set; }
		[SignatureField(SignatureKind.FieldSig)]
		public SignatureRef Signature { get; set; }

		public override string ToString(MetadataContainer container)
		{
			string name = container.GetString(this.Name);
			return name;
		}
	}
}
